html {
	background: #000;
	height: 100%;
}

.wrap {
	position: relative;
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	width: 200px;
	height: 200px;
	margin: auto;
}

@font-face {
	font-family: 'icomoon';
	src: url('../fonts/icomoon.eot?p4ssmb');
	src: url('../fonts/icomoon.eot?p4ssmb#iefix') format('embedded-opentype'), url('../fonts/icomoon.ttf?p4ssmb') format('truetype'), url('../fonts/icomoon.woff?p4ssmb') format('woff'), url('../fonts/icomoon.svg?p4ssmb#icomoon') format('svg');
	font-weight: normal;
	font-style: normal;
	font-display: block;
}

span>a {
	font-family: 'icomoon';
	float: left;
	font-size: 20px;
	color: pink;
	margin-top: 16px;
	margin-left: 10px;
	text-decoration: none;
}

.box {
	float: left;
}

.cube {
	width: 200px;
	height: 200px;
	margin: 0 auto;
	transform-style: preserve-3d;
	transform: rotateX(-30deg) rotateY(-80deg);
	animation: rotate 25s infinite;
	animation-timing-function: linear;
}

@keyframes rotate {
	from {
		transform: rotateX(0deg) rotateY(0deg);
	}
	to {
		transform: rotateX(360deg) rotateY(360deg);
	}
}

.cube div {
	position: absolute;
	width: 200px;
	height: 200px;
	opacity: 0.8;
	transition: all .4s;
}

.pic {
	width: 200px;
	height: 200px;
}

.cube .out_front {
	transform: rotateY(0deg) translateZ(100px);
}

.cube .out_back {
	transform: translateZ(-100px) rotateY(180deg);
}

.cube .out_left {
	transform: rotateY(90deg) translateZ(100px);
}

.cube .out_right {
	transform: rotateY(-90deg) translateZ(100px);
}

.cube .out_top {
	transform: rotateX(90deg) translateZ(100px);
}

.cube .out_bottom {
	transform: rotateX(-90deg) translateZ(100px);
}

.cube span {
	display: bloack;
	width: 100px;
	height: 100px;
	position: absolute;
	top: 50px;
	left: 50px;
}

.cube .in_pic {
	width: 100px;
	height: 100px;
}

.cube .in_front {
	transform: rotateY(0deg) translateZ(50px);
}

.cube .in_back {
	transform: translateZ(-50px) rotateY(180deg);
}

.cube .in_left {
	transform: rotateY(90deg) translateZ(50px);
}

.cube .in_right {
	transform: rotateY(-90deg) translateZ(50px);
}

.cube .in_top {
	transform: rotateX(90deg) translateZ(50px);
}

.cube .in_bottom {
	transform: rotateX(-90deg) translateZ(50px);
}

.cube:hover .out_front {
	transform: rotateY(0deg) translateZ(200px);
}

.cube:hover .out_back {
	transform: translateZ(-200px) rotateY(180deg);
}

.cube:hover .out_left {
	transform: rotateY(90deg) translateZ(200px);
}

.cube:hover .out_right {
	transform: rotateY(-90deg) translateZ(200px);
}

.cube:hover .out_top {
	transform: rotateX(90deg) translateZ(200px);
}

.cube:hover .out_bottom {
	transform: rotateX(-90deg) translateZ(200px);
}